package com.drivers.homepage.mapper;

import com.drivers.homepage.domain.DriverOnceOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DriverOnceOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DriverOnceOrder record);

    int insertSelective(DriverOnceOrder record);

    DriverOnceOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DriverOnceOrder record);

    int updateByPrimaryKey(DriverOnceOrder record);

    DriverOnceOrder getOrderOneTimeItem(DriverOnceOrder driverOnceOrder);

    Integer updateNum(String id);

    Integer getSumNum(DriverOnceOrder driverOnceOrder);
    Integer updateMoney(String id);

    DriverOnceOrder selectByDriverId(Integer driverId);

    void updateStatus(String driverId);
}
